﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Drawing;
using System.Data;
using System.Text;
using System.Windows.Forms;
using SharpDiary.Core.ORMapping;

namespace SharpDiary.Core.Controls
{
    public partial class EmotionListControl : ListControlBase
    {
        public EmotionListControl()
        {
            InitializeComponent();
        }

        public override void ShowItems()
        {
            base.ShowItems();

            List<EmotionInfo> emotions = EmotionInfo.GetAllEmotions();

            foreach (EmotionInfo emotion in emotions)
            {
                EmotionListItem item = new EmotionListItem();
                item.Emotion = emotion;

                AddItem(item);
            }
        }
    }
}
